<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="shortcut icon" href="<?=base_url();?>assets/ico/favicon.png">

<title><?= $template['title'];?></title>
<?= $template['metadata'];?>
<?= $this->settings_model->getSetting('google_analytics');?>
<?= $this->settings_model->getSetting('state_counter_code');?>

<!-- Bootstrap core CSS -->
<link href="<?=base_url();?>assets/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="<?=base_url();?>assets/css/theme.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/jquery-ui.css" rel="stylesheet">
</head>

<body data-baseurl="<?= base_url(); ?>">
	<?php
	if (isset($template['partials']['nav_bar']))
		echo $template['partials']['nav_bar'];
	?>

	<div class="container">

		<div class="page-header col-lg-12">
			<?php
			if (isset($template['partials']['header_search']))
				echo $template['partials']['header_search'];
			?>

		</div>
		<!-- /.Page Header -->
	</div>
	<!-- /.container -->


	<div class="container">

		<div class="col-xs-3">

			<div class="panel panel-default">

				<div class="panel-body">
					<?php if(!isset($profile['info'])){?>
					<img class="img-responsive"
						src="<?= base_url(); ?>assets/images/photo/no_profile_image.png" />
					<?php }else{?>
					<img class="img-responsive"
						src="<?= base_url(); ?>assets/images/photo/<?= $profile['info']->photo;?>" />
					<?php }?>

				</div>

				<div class="panel-footer text-center">
					<a href="<?= base_url(); ?>member/profile_image/">Change Photo</a>
				</div>
			</div>


			<div class="list-group">
				<a href="<?= base_url(); ?>member" class="list-group-item lead">Dashboard</a>


				<?php if(!isset($profile['info'])){?>

				<a href="<?= base_url(); ?>member/choose_plan"
					class="list-group-item"><span class="glyphicon glyphicon-user"></span>&nbsp;
					Profile Add</a>
				<?php }else{?>
				<a href="<?= base_url(); ?>member/profile/edit"
					class="list-group-item"><span class="glyphicon glyphicon-user"></span>&nbsp;
					Profile Update</a>
				<?php }?>


				<a href="<?= base_url(); ?>member/change_password"
					class="list-group-item"><span class="glyphicon glyphicon-lock"></span>&nbsp;
					Change Password</a> <a
					href="<?= base_url(); ?>member/qualification"
					class="list-group-item"> <span class="glyphicon glyphicon-random"></span>&nbsp;
					Qualification
				</a> <a href="<?= base_url();?>member/license"
					class="list-group-item"><span
					class="glyphicon glyphicon-certificate"></span>&nbsp; License</a> <a
					href="<?= base_url();?>member/association" class="list-group-item"><span
					class="glyphicon glyphicon-check"></span>&nbsp; Association</a> <a
					href="<?= base_url();?>member/awards" class="list-group-item"><span
					class="glyphicon glyphicon-bookmark"></span>&nbsp; Awards</a> 
					<!-- 
					<a
					href="<?= base_url();?>member/branchoffice" class="list-group-item"><span
					class="glyphicon glyphicon-pushpin"></span>&nbsp; Branch Offices</a>
 -->
			</div>
			
			<div class="list-group">
				<a href="<?= base_url();?>member/sale" class="list-group-item"> <span
					class="glyphicon glyphicon-shopping-cart"></span>&nbsp; Sale your Business
				</a>
				<?php if($this->commoncall->getModule('Articles') == '51'){?>
				<a href="<?= base_url();?>member/job" class="list-group-item"> <span
					class="glyphicon glyphicon-pushpin"></span>&nbsp; Post New Job
				</a>
				<?php }?>
			</div>
			
			
			<div class="list-group">
				<a href="<?= base_url();?>member/message" class="list-group-item"> <span
					class="glyphicon glyphicon-comment"></span>&nbsp; Messages
				</a>
				<?php if($this->commoncall->getModule('Articles') == '51'){?>
				<a href="<?= base_url();?>member/article" class="list-group-item"> <span
					class="glyphicon glyphicon-pencil"></span>&nbsp; Post Article
				</a>
				<?php }?>
			</div>


		</div>

		<div class="col-xs-9">

			<?php echo $template['body'];?>

		</div>



	</div>
	<!-- /.container -->


	<div class="footer">

		<?php echo Modules::run('static/page/footer',$pos=2); ?>

	</div>
	<!-- /.footer1 -->

	<div class="footer2">
		<div class="container">
			<ul class="list-unstyled list-inline">
				<li>All Rights Reserved</li>
				<li><a href="#"> Terms of use </a>
				</li>
				<li><a href="#"> Privacy Policy </a>
				</li>
			</ul>

		</div>
	</div>


	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="http://maps.google.com/maps/api/js?sensor=false"
		type="text/javascript"></script>

	<script src="<?= base_url();?>assets/js/jquery-1.10.1.min.js"></script>
	<script src="<?=base_url();?>/assets/js/jquery.js"></script>
	<script src="<?=base_url();?>/assets/js/respond.min.js"></script>
	<script src="<?=base_url();?>/assets/js/bootstrap.min.js"></script>
	<script src="<?= base_url();?>assets/js/jquery-ui-1.10.3.custom.js"></script>
	<script src="<?=base_url();?>/assets/js/law.js"></script>
</body>
</html>
